import request from '@/common/request.js'	

/**
 * 意见反馈
 */

// 列表
export function feedbackList(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/feedbackList",
			method: "get",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
// 提交
export function feedbackCreate(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/feedbackCreate",
			method: "post",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
// 查看详情
export function feedbackDetail(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/feedbackDetail",
			method: "post",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
// 阅读
export function feedbackRyView(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/feedbackRyView",
			method: "post",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
// 问题分类列表
export function problemCateList(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/problemCateList",
			method: "get",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
